package com.isaiah.tree;

/**
 * @Title: 基于数组的线段树实现
 * @Description: ${todo}
 * @author: Haijun
 * @emial: isaiah@sohu.com
 * @date 2020/5/2612:36
 */
public class SegmentTree<E> {
    private E[] data;

    public SegmentTree(E[] arr) {
        //this.data = data;
        // copy数组
        data = (E[]) new Object[arr.length];
        for (int i = 0; i < arr.length; i++){
            data[i] = arr[i];
        }
    }
}
